#!/bin/bash

export PYTHONPATH=`pwd`/module:`pwd`/applications

function check_kivy {
	python -c "import kivy"
	if [[ "$?" -ne "0" ]] ; then
		echo "It seems that kivy is not installed on your system, I will install it..."
		sudo apt-get update
		sudo apt-get install python-setuptools python-pygame python-opengl python-gst0.10 python-enchant gstreamer0.10-plugins-good python-dev build-essential libgl1-mesa-dev libgles2-mesa-dev python-pip
		sudo pip install --upgrade cython
		sudo easy_install kivy
		echo "Installation Done!"
	else
		echo "kivy installed"
	fi
}
check_kivy
python applications/nmjeditor/ned.py

